﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Model.Modules.System
{
    /// <summary>
    /// 用户模型
    /// </summary>
    public class SysUserModel
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public string UserId { get; set; } = Guid.NewGuid().ToString("N");

        /// <summary>
        /// 用户编号（登录账号）
        /// </summary>
        public string UserCode { get; set; }

        /// <summary>
        /// 用户名称（昵称）
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string? RealName { get; set; }

        /// <summary>
        /// 邮箱地址
        /// </summary>
        public string? EmailAddress { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string? MobileNumber { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool? Enabled { get; set; } = true;

        /// <summary>
        /// 最近一次登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 用户角色
        /// </summary>
        public List<string> RoleIds { get; set; }
    }
}